<%@ page session="false" %>
<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>


<pg:pages export="url,pageNumber">
     <c:set var="pCurl">${fn:replace(url, "&", "&amp;")}</c:set>
     <c:choose>
        <c:when test="${pageNumber == currentPageNumber}">
            <%--${pageNumber}&nbsp;--%>
            <c:set var="cpCurl" scope="request">${fn:replace(url, "&", "&amp;")}</c:set>
        </c:when>
        <%--<c:otherwise>--%>
            <%--<a href="<c:url value="${pCurl}"/>" >${pageNumber}</a>--%>
        <%--</c:otherwise>--%>
    </c:choose>
</pg:pages>
<%--<pg:first export="url" unless="current">--%>
   <%--<c:set var="pCurl">  ${fn:replace(url, "&", "&amp;")}</c:set>--%>
  <%--<a href="<c:url value="${pCurl}"/>" >首页</a>--%>
<%--</pg:first>--%>


<pg:next export="url">
     <c:set var="pCurl">  ${fn:replace(url, "&", "&amp;")}</c:set>
  <a href="<c:url value="${pCurl}"/>" >下页</a>
</pg:next>

<pg:prev export="url">
  <c:set var="pCurl">  ${fn:replace(url, "&", "&amp;")}</c:set>
  <a href="<c:url value="${pCurl}"/>">上页</a>
</pg:prev>

<%--<pg:last export="url" unless="current">--%>
       <%--<c:set var="pCurl">  ${fn:replace(url, "&", "&amp;")}</c:set>--%>
  <%--<a href="<c:url value="${pCurl}"/>" >尾页</a>--%>
<%--</pg:last>--%>



